<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>工艺巡检记录</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<style type="text/css">
		 .left-label {
		 	width: 120px !important
		 }
	</style>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/layui.css"  media="all">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/toastr.min.css"  media="all">
</head>
<body>
<div class="demoTable" style="padding:10px 0 0 15px">
    <div class="layui-inline">
    	<%--<input class="layui-input" name="searchTime" id="searchTime" placeholder="请输入时间检索" style="display: inline; width: 45%">--%>
        <input class="layui-input" name="keyword" id="keyword" placeholder="离心机或纺丝车间名称" autocomplete="off" style="display: inline; width: 110%">
    </div>
    <button class="layui-btn layui-btn-blue" style="margin: 0 0 0 25px" data-type="reload"><i class="layui-icon layui-icon-search">搜索</i></button>
</div>

<table class="layui-hide" id="tableList" lay-filter="tableList"></table>

<script src="${pageContext.request.contextPath }/assets/layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath }/assets/layui.all.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath }/assets/js/jquery.min.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath }/assets/js/toastr.min.js" charset="utf-8"></script>
 
<script type="text/javascript">
	layui.use(['table','layer','upload','form','laydate'], function(){
		var table = layui.table;
		var layer = layui.layer;
	    var form = layui.form;
		var $ = layui.jquery, active = {
			reload:function () {
				/*var searchTime = $("#searchTime").val();*/
				var keyword01 = $("#keyword").val();
				/*console.log(searchTime + ',' + keyword)*/
				table.reload('contenttable',{
					method:'get',
					where:{"keyword01":keyword01},
					page: {
						curr: 1
					}
				});
			}
		}
		$('.layui-btn').on('click', function(){
	        var type = $(this).data('type');
	        active[type] ? active[type].call(this) : '';
	    });
		table.render({
		    elem: '#tableList'
		    ,url:'${pageContext.request.contextPath }/processItem/queryActualTimeInfoList.do'
		    ,toolbar: '#toolbar'
		    ,title: '巡检项'
		    ,id :'contenttable'
		    ,limits:[10,20,30]
		    ,cols: [[
		      /* {type: 'checkbox', fixed: 'left', }, */
		      {field:'', title:'序号', sort: true, type:'numbers', width: 60},
		      {field:'d_s_id', title:'离心机或纺丝车间名称'},
		      {field:'processItemName', title:'工艺巡检项名称'},
		      {field:'standardVal', title:'标准值'},
		      {field:'actualVal', title:'实际值'},
		      {field:'handleWay', title:'处理意见'},
		      {field:'checkTime', title:'巡检时间'}
		    ]],
		    page: true
		});
	});

</script>

</body>
</html>